#include<stdio.h>
#include<string.h>

int main(int argc, char const *argv[])
{
    char arr_1[128]="123456";
    int arr_2[128];
    for (size_t i = 0; i < strlen(arr_1); i++)
    {
        arr_2[i]=arr_1[i]-48;//arr_1[i]-'0'一样的
        printf("%d",arr_2[i]);
    }
    return 0;
}
